<!doctype html>
<html lang="zh-CN">
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <meta name="referrer" content="no-referrer-when-downgrade">
    

    <title>Liunx 磁盘分区与文件挂载  | matrix</title>
    <meta property="og:title" content="Liunx 磁盘分区与文件挂载  - matrix">
    <meta property="og:type" content="article">
        
    <meta property="article:published_time" content='2021-01-16T14:30:24&#43;08:00'>
        
        
    <meta property="article:modified_time" content='2021-01-16T14:30:24&#43;08:00'>
        
    <meta name="Keywords" content="黑客技术，WEB安全，让你听懂每个漏洞成因，明白每个技术原理,博客,项目管理,python,软件架构,公众号,小程序">
    <meta name="description" content="Liunx 磁盘分区与文件挂载 ">
        
    <meta name="author" content="matrix">
    <meta property="og:url" content="https://gitmatrix.gitee.io/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/Linux-%E7%A3%81%E7%9B%98%E6%8C%82%E8%BD%BD/">
    <link rel="shortcut icon" href='/favicon.ico'  type="image/x-icon">

    <link rel="stylesheet" href='/css/normalize.css'>
    <link rel="stylesheet" href='/css/style.css'>
    <script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

    
    
    
        <link href="https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" rel="stylesheet">
    
    
    
    
        <link rel="stylesheet" href='/css/douban.css'>
    
        <link rel="stylesheet" href='/css/other.css'>
    
</head>


<body>
    <header id="header" class="clearfix">
    <div class="container">
        <div class="col-group">
            <div class="site-name ">
                
                    <a id="logo" href="https://gitmatrix.gitee.io/">
                        matrix
                    </a>
                
                <p class="description">黑客技术，WEB安全，让你听懂每个漏洞成因，明白每个技术原理</p>
            </div>
            <div>
                <nav id="nav-menu" class="clearfix">
                    <a class="current" href="https://gitmatrix.gitee.io/">首页</a>
                    
                    <a  href="https://gitmatrix.gitee.io/archives/" title="归档">归档</a>
                    
                    <a  href="https://gitmatrix.gitee.io/about/" title="关于">关于</a>
                    
                </nav>
            </div>
        </div>
    </div>
</header>

    <div id="body">
        <div class="container">
            <div class="col-group">

                <div class="col-8" id="main">
                    
<div class="res-cons">
    <style type="text/css">
    .post-toc {
        position: fixed;
        width: 200px;
        margin-left: -210px;
        padding: 5px 10px;
        font-family: Athelas, STHeiti, Microsoft Yahei, serif;
        font-size: 12px;
        border: 1px solid rgba(0, 0, 0, .07);
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.98);
        background-clip: padding-box;
        -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        word-wrap: break-word;
        white-space: nowrap;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        z-index: 999;
        cursor: pointer;
        max-height: 70%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .post-toc .post-toc-title {
        width: 100%;
        margin: 0 auto;
        font-size: 20px;
        font-weight: 400;
        text-transform: uppercase;
        text-align: center;
    }

    .post-toc .post-toc-content {
        font-size: 15px;
    }

    .post-toc .post-toc-content>nav>ul {
        margin: 10px 0;
    }

    .post-toc .post-toc-content ul {
        padding-left: 20px;
        list-style: square;
        margin: 0.5em;
        line-height: 1.8em;
    }

    .post-toc .post-toc-content ul ul {
        padding-left: 15px;
        display: none;
    }

    @media print,
    screen and (max-width:1057px) {
        .post-toc {
            display: none;
        }
    }
</style>
<div class="post-toc" style="position: absolute; top: 188px;">
    <h2 class="post-toc-title">文章目录</h2>
    <div class="post-toc-content">
        <nav id="TableOfContents">
  <ul>
    <li><a href="#1基本磁盘">1.基本磁盘</a>
      <ul>
        <li><a href="#一-磁盘分区">一. 磁盘分区</a></li>
        <li><a href="#二格式化分区mkfs--t-分区类型--磁盘分区">二.格式化分区：mkfs -t 分区类型  磁盘分区</a></li>
        <li><a href="#三新建挂载点">三.新建挂载点</a></li>
        <li><a href="#取消挂载">取消挂载：</a></li>
      </ul>
    </li>
    <li><a href="#2动态磁盘">2.动态磁盘</a>
      <ul>
        <li><a href="#一lvm逻辑卷的概念">一、LVM逻辑卷的概念</a></li>
      </ul>
    </li>
    <li><a href="#扩展lvm逻辑卷分区extend">扩展LVM逻辑卷分区（extend）</a></li>
    <li><a href="#删除lvm挂载">删除LVM挂载：</a>
      <ul>
        <li><a href="#lvm的管理命令">LVM的管理命令：</a></li>
      </ul>
    </li>
    <li><a href="#永久挂载">永久挂载</a></li>
    <li><a href="#挂载光驱设备">挂载光驱设备</a></li>
    <li><a href="#挂载u盘设备">挂载U盘设备</a></li>
  </ul>
</nav>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        var postToc = $(".post-toc");
        if (postToc.length) {
            var leftPos = $("#main").offset().left;
            if(leftPos<220){
                postToc.css({"width":leftPos-10,"margin-left":(0-leftPos)})
            }

            var t = postToc.offset().top - 20,
                a = {
                    start: {
                        position: "absolute",
                        top: t
                    },
                    process: {
                        position: "fixed",
                        top: 20
                    },
                };
            $(window).scroll(function () {
                var e = $(window).scrollTop();
                e < t ? postToc.css(a.start) : postToc.css(a.process)
            })
        }
    })
</script>
    <article class="post">
        <header>
            <h1 class="post-title">Liunx 磁盘分区与文件挂载 </h1>
        </header>
        <date class="post-meta meta-date">
            2021年1月16日
        </date>
        
        <div class="post-meta">
            <span>|</span>
            
            <span class="meta-category"><a href='/categories/Liunx'>Liunx</a></span>
            
        </div>
        
        
        <div class="post-meta">
            <span id="busuanzi_container_page_pv">|<span id="busuanzi_value_page_pv"></span><span>
                    阅读</span></span>
        </div>
        
        
        <div class="clear" style="display: none">
            <div class="toc-article">
                <div class="toc-title">文章目录</div>
            </div>
        </div>
        
        <div class="post-content">
            <h1 id="liunx-磁盘分区与文件挂载">Liunx 磁盘分区与文件挂载</h1>
<h2 id="1基本磁盘">1.基本磁盘</h2>
<blockquote>
<p>磁盘在Linux 系统中的表示方法为：</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">IDE接口的磁盘：/dev/hd<span style="color:#000;font-weight:bold">[</span>a-p<span style="color:#000;font-weight:bold">][</span>1-128<span style="color:#000;font-weight:bold">]</span>
/dev/hda<span style="color:#000;font-weight:bold">(</span>主分区<span style="color:#000;font-weight:bold">)</span>   /dev/hda1（扩展分区）  /dev/hda2 .....   hdb hdc ....
 SCSI<span style="color:#d14">\S</span>ATAR<span style="color:#d14">\U</span>SB接口的硬盘：/dev/sd<span style="color:#000;font-weight:bold">[</span>a-p<span style="color:#000;font-weight:bold">][</span>1-128<span style="color:#000;font-weight:bold">]</span>
 /dev/sda<span style="color:#000;font-weight:bold">(</span>主分区<span style="color:#000;font-weight:bold">)</span>  /dev/sda1（扩展分区 /dev/sda2...   /dev/sdb  ....
</code></pre></td></tr></table>
</div>
</div><p>磁盘设备与分区都以文件的形式存储在/dev/目录下，不能直接使用，必须进行挂载。</p>
</blockquote>
<p><code>基本磁盘的管理步骤一般为： 分区 --&gt;格式化（ext4）---&gt; 挂载</code></p>
<h3 id="一-磁盘分区">一. 磁盘分区</h3>
<blockquote>
<p>1、基本磁盘分区：</p>
<p>（1）最多可以分为四个主分区（包含扩展分区(只能有一个)，将剩余的所有空间包含在内）。</p>
<p>（2）主分区和扩展分区的编号：1-4为主分区和扩展分区的编号。</p>
<p>（3）扩展分区不能直接使用，必须在扩展分区上建立逻辑分区并格式化后才能使用。</p>
<p>（4）逻辑分区编号从5开始。</p>
</blockquote>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># fdisk -l   # 详细查看磁盘设备名</span>


<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># fdisk -l |grep sd</span>
磁盘 /dev/sda：42.9 GB, <span style="color:#099">42949672960</span> 字节，83886080 个扇区
/dev/sda1   *        <span style="color:#099">2048</span>     <span style="color:#099">2099199</span>     <span style="color:#099">1048576</span>   <span style="color:#099">83</span>  Linux
/dev/sda2         <span style="color:#099">2099200</span>    <span style="color:#099">83886079</span>    <span style="color:#099">40893440</span>   8e  Linux LVM
磁盘 /dev/sdd：2147 MB, <span style="color:#099">2147483648</span> 字节，4194304 个扇区
磁盘 /dev/sdc：2147 MB, <span style="color:#099">2147483648</span> 字节，4194304 个扇区
磁盘 /dev/sdb：2147 MB, <span style="color:#099">2147483648</span> 字节，4194304 个扇区
</code></pre></td></tr></table>
</div>
</div><h4 id="如对-devsdb-磁盘分区">如对 /dev/sdb 磁盘分区</h4>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">19
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">20
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">21
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">22
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">23
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost ~<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># fdisk /dev/sdb</span>

<span style="color:#998;font-style:italic"># 常用参数</span>
命令<span style="color:#000;font-weight:bold">(</span>输入 m 获取帮助<span style="color:#000;font-weight:bold">)</span>：m
命令操作
   a   toggle a bootable flag <span style="color:#998;font-style:italic">#切换一个启动标志</span>
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition			<span style="color:#d14">&#39;#删除一个分区&#39;</span>
   g   create a new empty GPT partition table	<span style="color:#998;font-style:italic">#创建一个新的空GPT分区表</span>
   G   create an IRIX <span style="color:#000;font-weight:bold">(</span>SGI<span style="color:#000;font-weight:bold">)</span> partition table
   l   list known partition types 		<span style="color:#d14">&#39; # 列出已知的分区类型&#39;</span>
   m   print this menu  		<span style="color:#998;font-style:italic">#打印菜单</span>
   n   add a new partition  <span style="color:#d14">&#39;# 添加一个新分区&#39;</span>
   o   create a new empty DOS partition table
   p   print the partition table		<span style="color:#d14">&#39; #显示分区表&#39;</span>
   q   quit without saving changes 		<span style="color:#998;font-style:italic"># 不保存更改就退出</span>
   s   create a new empty Sun disklabel  <span style="color:#998;font-style:italic">#创建一个新的空的Sun磁盘标签</span>
   t   change a partitions system id 		<span style="color:#d14">&#39;# 更改分区的系统id&#39;</span>
   u   change display/entry units <span style="color:#998;font-style:italic">#改变显示/输入单元</span>
   v   verify the partition table <span style="color:#998;font-style:italic"># 验证分区表</span>
   w   write table to disk and <span style="color:#0086b3">exit</span> <span style="color:#d14">&#39;# 将表写入磁盘并退出&#39;</span>
   x   extra functionality <span style="color:#000;font-weight:bold">(</span>experts only<span style="color:#000;font-weight:bold">)</span>
</code></pre></td></tr></table>
</div>
</div><h3 id="二格式化分区mkfs--t-分区类型--磁盘分区">二.格式化分区：mkfs -t 分区类型  磁盘分区</h3>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mkfs -t 分区类型(ext2 ext3 ext4)  磁盘分区名</span>

 <span style="color:#998;font-style:italic"># 格式化 /dev/sdb1</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mkfs -t ext4 /dev/sdb1 </span>
</code></pre></td></tr></table>
</div>
</div><h3 id="三新建挂载点">三.新建挂载点</h3>
<blockquote>
<p>所谓的挂载点就是文件系统中存在的一个目录，通常情况下，创建在/mnt目录下，挂载成功后，访问挂载点就是访问新的存储设备。</p>
<p>注意：挂载点应该是空目录，否则原来该挂载点中存在的文件将会被隐藏。而且，挂载点在实施挂载操作之前就应该存在。</p>
</blockquote>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">8
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">9
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#998;font-style:italic"># 格式</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic">#mount [-t 文件系统类型] 设备分区名  挂载点</span>

 <span style="color:#998;font-style:italic"># 将磁盘/dev/sdb1 挂载到 /mnt/sdb1 目录下（提前建立挂载点 mkdir /mnt/sdb1）</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic">#mount -t ext4 /dev/sdb1 /mnt/sdb1 </span>

<span style="color:#998;font-style:italic"># 查看挂载情况 </span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mount   </span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mount |grep sdb1</span>
</code></pre></td></tr></table>
</div>
</div><h3 id="取消挂载">取消挂载：</h3>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># umount 挂载点</span>
umount /mnt/sdb1
或者
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># umount 设备文件名</span>
umount /dev/sdb1
</code></pre></td></tr></table>
</div>
</div><h2 id="2动态磁盘">2.动态磁盘</h2>
<h3 id="一lvm逻辑卷的概念">一、LVM逻辑卷的概念</h3>
<blockquote>
<p>LVM可以实现对磁盘的动态管理，在磁盘不用重新分区的情况下动态调整文件系统的大小，利用LVM管理的文件系统可以跨越磁盘。</p>
<ol>
<li>
<p><strong>物理卷 PV</strong> : 经过处理后的磁盘分区</p>
</li>
<li>
<p><strong>卷组 VG</strong>:由一个或多个物理卷组成，类似于非LVM系统中的物理磁盘</p>
</li>
<li>
<p><strong>逻辑卷 LV</strong>:在逻辑卷之上可以创建文件系统，类似于非LVM系统中的磁盘分区。</p>
</li>
<li>
<p><strong>物理块PE</strong>:物理卷的组成部分，PE的大小默认为4MB，大小可调，一个卷组中最多能包括65534个PE。</p>
</li>
</ol>
</blockquote>
<p>
        <a data-fancybox="gallery" href="C:/Users/Administrator/AppData/Roaming/Typora/typora-user-images/image-20201012144426305.png">
            <img class="mx-auto" alt="image-20201012144426305" src="C:/Users/Administrator/AppData/Roaming/Typora/typora-user-images/image-20201012144426305.png" />
        </a>
    </p>
<p>动态磁盘管理步骤：</p>
<p>​	 <code>第一步:	磁盘分区（最好一个磁盘一个分区  更改分区的系统id为 8e）</code></p>
<p>​	<code>第二步：将分区转化为物理卷 PV</code></p>
<p>​	<code>第三步：创建卷组 VG,将PV加入到卷组</code></p>
<p>​	<code>第四步：创建逻辑卷 LV</code></p>
<pre><code>`第五步：格式化并挂载使用`
</code></pre>
<h4 id="第一步磁盘分区一个磁盘一个分区--更改分区的系统id为-8e">第一步:	磁盘分区（一个磁盘一个分区  更改分区的系统id为 8e）</h4>
<p>将/dev/sdc /dev/sdd 磁盘分区并修改为 8e</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">8
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">9
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># fdisk /dev/sdc </span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># fdisk /dev/sdd</span>

<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># fdisk -l | grep sd</span>
磁盘 /dev/sdc：2147 MB, <span style="color:#099">2147483648</span> 字节，4194304 个扇区
/dev/sdc1            <span style="color:#099">2048</span>     <span style="color:#099">4194303</span>     <span style="color:#099">2096128</span>   8e  Linux LVM
磁盘 /dev/sdb：2147 MB, <span style="color:#099">2147483648</span> 字节，4194304 个扇区
/dev/sdb1            <span style="color:#099">2048</span>     <span style="color:#099">4194303</span>     <span style="color:#099">2096128</span>   8e  Linux LVM
</code></pre></td></tr></table>
</div>
</div><h4 id="第二步将分区转化为物理卷-pv">第二步：将分区转化为物理卷 PV</h4>
<p>dev/sdc1   /dev/sdd2  逻辑分区转化为物理卷</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">8
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># pvcreat  dev/sdc1 /dev/sdd2</span>

<span style="color:#998;font-style:italic"># 查看基本信息</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># pvscan</span>
  PV /dev/sdc1   VG company         lvm2 <span style="color:#000;font-weight:bold">[</span>&lt;2.00 GiB / <span style="color:#099">0</span>    free<span style="color:#000;font-weight:bold">]</span>
  PV /dev/sdd1   VG company         lvm2 <span style="color:#000;font-weight:bold">[</span>&lt;2.00 GiB / <span style="color:#099">0</span>    free<span style="color:#000;font-weight:bold">]</span>
<span style="color:#998;font-style:italic"># 查看物理卷详细信息  </span>
 <span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># pvdisplay</span>
</code></pre></td></tr></table>
</div>
</div><h4 id="第三步创建卷组-vg将pv加入到卷组">第三步：创建卷组 VG,将PV加入到卷组</h4>
<p>创建卷组VG  如 company，并将PV加入到卷组 company中</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># vgcreate company dev/sdc1 /dev/sdd2</span>

 <span style="color:#998;font-style:italic"># 查看基本信息：vgscan</span>
<span style="color:#998;font-style:italic">#  查看详细信息：vgdisplay</span>
</code></pre></td></tr></table>
</div>
</div><h4 id="第四步创建逻辑卷-lv">第四步：创建逻辑卷 LV</h4>
<p>分别创建逻辑卷用于挂载</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># lvcreate -L 1G -n web/dev/company</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># lvcreate -L 1G -n ftp/dev/company</span>
<span style="color:#998;font-style:italic"># 卷组一共有4G 最后一个逻辑卷容量应该是剩下的所有（vgdisplay 查看）</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># lvcreate -L 1.99G -n public/dev/company</span>
</code></pre></td></tr></table>
</div>
</div><h4 id="第五步格式化并挂载使用">第五步：格式化并挂载使用</h4>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#998;font-style:italic"># 格式化</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mkfs -t ext4 /dev/company/web</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mkfs -t ext4 /dev/company/ftp</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mkfs -t ext4 /dev/company/public</span>

<span style="color:#998;font-style:italic"># 挂载</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mount /dev/company/web /mnt/web</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mount /dev/company/ftp /mnt/ftp</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mount /dev/company/public /mnt/public</span>

<span style="color:#998;font-style:italic"># 查看 </span>
df -hT
mount 
</code></pre></td></tr></table>
</div>
</div><h2 id="扩展lvm逻辑卷分区extend">扩展LVM逻辑卷分区（extend）</h2>
<p><strong>（分区&ndash;&gt;转化为物理卷（PV）&ndash;&gt; 加入相同卷组（vgextend）&mdash;&mdash;-&gt;添加到需要扩展的逻辑卷中（LV) &mdash;&gt; 重置逻辑空间（resize2fs））</strong></p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#998;font-style:italic">#分区</span>
fdisk /dev/sdb
<span style="color:#998;font-style:italic"># 转换为物理卷</span>
pvcreate /dev/sdb1
<span style="color:#998;font-style:italic"># 添加到卷组</span>
vgextend company /dev/sdb1
<span style="color:#998;font-style:italic">#添加到逻辑卷</span>
lvextend -L +1.99G /dev/company/ftp
<span style="color:#998;font-style:italic">#重置逻辑空间</span>
resize2fs /dev/company/ftp

</code></pre></td></tr></table>
</div>
</div><h2 id="删除lvm挂载">删除LVM挂载：</h2>
<p>第一步：取消挂载</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">umount /mnt/ftp
umount /mnt/web
umount /mnt/public
</code></pre></td></tr></table>
</div>
</div><p>第二步：删除物理卷 pvremove</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">pvremove -f /dev/company 
<span style="color:#998;font-style:italic"># 检查</span>
pvdisplay
</code></pre></td></tr></table>
</div>
</div><p>第三步：删除卷组 vgremove</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">vgremove -f /dev/company/ftp
vgremove -f /dev/company/web
vgremove -f /dev/company/public
<span style="color:#998;font-style:italic"># 检查是否删除</span>
vgdispay 
</code></pre></td></tr></table>
</div>
</div><p>第四步：删除分区</p>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"> fdisk /dev/sdc		d
 fdisk /dev/sdd     d
 <span style="color:#998;font-style:italic">#查看</span>
 fdisk -l
</code></pre></td></tr></table>
</div>
</div><p>第五步: 注释掉永久挂载配置文件 /etc/fstab</p>
<h3 id="lvm的管理命令">LVM的管理命令：</h3>
<table>
<thead>
<tr>
<th><em><strong>*功能*</strong></em></th>
<th><em><strong>*物理卷管理*</strong></em></th>
<th><em><strong>*卷组管理*</strong></em></th>
<th><em><strong>*逻辑卷管理*</strong></em></th>
</tr>
</thead>
<tbody>
<tr>
<td>scan 扫描</td>
<td>pvscan</td>
<td>vgscan</td>
<td>lvscan</td>
</tr>
<tr>
<td>Create 建立</td>
<td>pvcreate</td>
<td>vgcreate</td>
<td>lvcreate</td>
</tr>
<tr>
<td>Display 显示</td>
<td>pvdisplay</td>
<td>vgdisplay</td>
<td>lvdisplay</td>
</tr>
<tr>
<td>Remove 删除</td>
<td>pvremove</td>
<td>vgremove</td>
<td>lvremove</td>
</tr>
<tr>
<td>Reduce 缩减</td>
<td></td>
<td>vgreduce</td>
<td>lvreduce</td>
</tr>
<tr>
<td>Extend 扩展</td>
<td></td>
<td>vgextend</td>
<td>lvextend</td>
</tr>
<tr>
<td>resize2f重置</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<h2 id="永久挂载">永久挂载</h2>
<blockquote>
<p>使用mount命令挂载只是临时的，如果重启系统后就失效了</p>
<p><strong>永久挂载：需要配置  /etc/fstab</strong></p>
</blockquote>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">vim /etc/fstab

/dev/mapper/centos-swap swap                    swap    defaults        <span style="color:#099">0</span> <span style="color:#099">0</span>
<span style="color:#998;font-style:italic"># 要挂载的设备		挂载点				文件类型 		挂载选项默认 		备份	开机检查</span>
/dev/sdb1       /mnt/sdb1                       ext4    defaults        <span style="color:#099">0</span>       <span style="color:#099">0</span>
/dev/sdb5       /mnt/sdb5                       ext4    defaults        <span style="color:#099">0</span>       <span style="color:#099">0</span>
/dev/company/FTP        /mnt/FTP        ext4    defaults        <span style="color:#099">0</span>       <span style="color:#099">0</span>
/dev/company/web        /mnt/web        ext4    defaults        <span style="color:#099">0</span>       <span style="color:#099">0</span>
/dev/company/public     /mnt/public     ext4    defaults        <span style="color:#099">0</span>       <span style="color:#099">0</span>
/dev/sr0 				/mnt/cdrom		iso9660	defaults		0		<span style="color:#099">0</span>
</code></pre></td></tr></table>
</div>
</div><div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#998;font-style:italic">#重新加载 </span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mount -o remount /mnt/ftp</span>
<span style="color:#998;font-style:italic"># 自动挂载</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mount -a </span>
</code></pre></td></tr></table>
</div>
</div><h2 id="挂载光驱设备">挂载光驱设备</h2>
<ol>
<li>
<p><strong>光驱设备在Linux系统中的表示方法：/dev/sr0</strong></p>
</li>
<li>
<p><strong>光驱设备文件系统类型：iso9660</strong></p>
<p>将光盘挂载到/mnt/cdrom目录：</p>
</li>
</ol>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mount -t iso9660 /dev/sr0  /mnt/cdrom</span>
</code></pre></td></tr></table>
</div>
</div><h2 id="挂载u盘设备">挂载U盘设备</h2>
<p><strong>Linux加载出U盘后  使用 fdisk -l</strong></p>
<blockquote>
<p>发现磁盘列表中多了一个硬盘/dev/sde，容量大小31G，和插入的U盘容量大小一致。</p>
<p>同时系统多了一个/dev/sde1的磁盘分区。这个磁盘分区就是要挂载的U盘。</p>
</blockquote>
<div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># fdisk -l</span>
磁盘 /dev/sde：31.0 GB, <span style="color:#099">31004295168</span> 字节，60555264 个扇区
<span style="color:#008080">Units</span> <span style="color:#000;font-weight:bold">=</span> 扇区 of <span style="color:#099">1</span> * <span style="color:#008080">512</span> <span style="color:#000;font-weight:bold">=</span> <span style="color:#099">512</span> bytes
扇区大小<span style="color:#000;font-weight:bold">(</span>逻辑/物理<span style="color:#000;font-weight:bold">)</span>：512 字节 / <span style="color:#099">512</span> 字节
I/O 大小<span style="color:#000;font-weight:bold">(</span>最小/最佳<span style="color:#000;font-weight:bold">)</span>：512 字节 / <span style="color:#099">512</span> 字节
磁盘标签类型：dos
磁盘标识符：0xfd4bbebe

   设备 Boot      Start         End      Blocks   Id  System
/dev/sde1   *        <span style="color:#099">2048</span>    <span style="color:#099">60555263</span>    <span style="color:#099">30276608</span>    c  W95 FAT32 <span style="color:#000;font-weight:bold">(</span>LBA<span style="color:#000;font-weight:bold">)</span>
</code></pre></td></tr></table>
</div>
</div><div class="highlight"><div style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4">
<table style="border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell"><span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mkdir /mnt/USB</span>
<span style="color:#000;font-weight:bold">[</span>root@localhost mnt<span style="color:#000;font-weight:bold">]</span><span style="color:#998;font-style:italic"># mount /dev/sde1 /mnt/USB</span>
</code></pre></td></tr></table>
</div>
</div>
        </div>

        


        

<div class="post-archive">
    <h2>See Also</h2>
    <ul class="listing">
        
        <li><a href="/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/">Linux 基础配置 </a></li>
        
        <li><a href="/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/linux-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4-/">Linux 常用命令 </a></li>
        
        <li><a href="/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/Linux%E6%96%87%E4%BB%B6%E7%89%B9%E6%AE%8A%E6%9D%83%E9%99%90SUIDSGID%E4%B8%8ESBIT/">Linux文件特殊权限 </a></li>
        
        <li><a href="/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/RAID-%E7%A3%81%E7%9B%98%E9%98%B5%E5%88%97/">RAID 磁盘阵列配置 </a></li>
        
        <li><a href="/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/rpm-%E4%B8%8E-yum-/">RPM 与 Yum </a></li>
        
    </ul>
</div>


        <div class="post-meta meta-tags">
            
            <ul class="clearfix">
                
                <li><a href='/tags/Linux'>Linux</a></li>
                
            </ul>
            
        </div>
    </article>
    
    

    
    
</div>

                    <footer id="footer">
    <div>
        &copy; 2021 <a href="https://gitmatrix.gitee.io/">matrix By matrix</a>
        
    </div>
    <br />
    
    <div>
        <div class="github-badge">
            <a href="https://gohugo.io/" target="_black" rel="nofollow"><span class="badge-subject">Powered by</span><span class="badge-value bg-blue">Hugo</span></a>
        </div>
        
        <div class="github-badge">
            <a href="https://github.com/flysnow-org/maupassant-hugo" target="_black"><span class="badge-subject">Theme</span><span class="badge-value bg-yellowgreen">Maupassant</span></a>
        </div>
    </div>
</footer>


    
    <script type="text/javascript">
        window.MathJax = {
            tex2jax: {
                inlineMath: [['$', '$']],
                processEscapes: true
                }
            };
    </script>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script><script src="https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>

<a id="rocket" href="#top"></a>
<script type="text/javascript" src='/js/totop.js?v=0.0.0' async=""></script>



    <script type="text/javascript" src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async></script>




    <script src='/js/douban.js'></script>

                </div>

                <div id="secondary">
    <section class="widget">
        <form id="search" action='https://gitmatrix.gitee.io/search/' method="get" accept-charset="utf-8" target="_blank" _lpchecked="1">
      
      <input type="text" name="q" maxlength="20" placeholder="Search">
      <input type="hidden" name="sitesearch" value="https://gitmatrix.gitee.io/">
      <button type="submit" class="submit icon-search"></button>
</form>
    </section>
    
    <section class="widget">
        <h3 class="widget-title">最近文章</h3>
<ul class="widget-list">
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/" title="Linux 基础配置 ">Linux 基础配置 </a>
    </li>
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/linux-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4-/" title="Linux 常用命令 ">Linux 常用命令 </a>
    </li>
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/Linux%E6%96%87%E4%BB%B6%E7%89%B9%E6%AE%8A%E6%9D%83%E9%99%90SUIDSGID%E4%B8%8ESBIT/" title="Linux文件特殊权限 ">Linux文件特殊权限 </a>
    </li>
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/Linux-%E7%A3%81%E7%9B%98%E6%8C%82%E8%BD%BD/" title="Liunx 磁盘分区与文件挂载 ">Liunx 磁盘分区与文件挂载 </a>
    </li>
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/Mysql-%E6%95%B0%E6%8D%AE%E5%BA%93/my.cnf-%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E8%AF%A6%E8%A7%A3/" title="my.cnf 配置文件详解">my.cnf 配置文件详解</a>
    </li>
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/Mysql-%E6%95%B0%E6%8D%AE%E5%BA%93/Mysql-%E6%93%8D%E4%BD%9C/" title="Mysql 基本操作">Mysql 基本操作</a>
    </li>
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/Mysql-%E6%95%B0%E6%8D%AE%E5%BA%93/Mysql%E4%BD%93%E7%B3%BB%E7%BB%93%E6%9E%84%E7%AE%A1%E7%90%86/" title="Mysql体系结构管理">Mysql体系结构管理</a>
    </li>
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/RAID-%E7%A3%81%E7%9B%98%E9%98%B5%E5%88%97/" title="RAID 磁盘阵列配置 ">RAID 磁盘阵列配置 </a>
    </li>
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/Linux-%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE/rpm-%E4%B8%8E-yum-/" title="RPM 与 Yum ">RPM 与 Yum </a>
    </li>
    
    <li>
        <a href="https://gitmatrix.gitee.io/post/SSH/SSH-%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C/" title="SSH 基本操作">SSH 基本操作</a>
    </li>
    
</ul>
    </section>

    
<section class="widget">
    <h3 class="widget-title" style="color:#6E718A">课程直达</h3>
    <ul class="widget-list">
        
        <li>
            <a href="https://www.bilibili.com/video/BV1nA411h7C9" title="Burpsuite使用教程" target="_blank" style="color:#6E718A">
                
                    <img src="https://gitee.com/gitmatrix/images/raw/master/img/20210116152721.png">
                
            </a>
        </li>
        
        <li>
            <a href="https://www.bilibili.com/video/BV1yf4y1i7Pb?p=1" title="网络安全提升技术与渗透测试原理深度解析" target="_blank" style="color:#6E718A">
                
                    <img src="https://gitee.com/gitmatrix/images/raw/master/img/6f19fe2958f4d3c5edaee825cda334bac074abc8.jpg">
                
            </a>
        </li>
        
    </ul>
</section>


    <section class="widget">
        <h3 class="widget-title"><a href='/categories/'>分类</a></h3>
<ul class="widget-list">
    
    <li><a href="https://gitmatrix.gitee.io/categories/Liunx/">Liunx (6)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/Mysql/">Mysql (3)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/SSH/">SSH (4)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/Test/">Test (1)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/Web-%E5%AE%89%E5%85%A8/">Web 安全 (9)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/web%E5%9F%BA%E7%A1%80/">web基础 (1)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/%E4%BF%A1%E6%81%AF%E6%94%B6%E9%9B%86/">信息收集 (10)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/%E5%8D%81%E5%A4%A7%E6%BC%8F%E6%B4%9E/">十大漏洞 (8)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/%E6%95%99%E7%A8%8B/">教程 (1)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/%E7%BD%91%E7%BB%9C%E5%AE%89%E5%85%A8%E6%B3%95/">网络安全法 (1)</a></li>
    
    <li><a href="https://gitmatrix.gitee.io/categories/%E8%BF%90%E7%BB%B4/">运维 (2)</a></li>
    
</ul>
    </section>

    <section class="widget">
        <h3 class="widget-title"><a href='/tags/'>标签</a></h3>
<div class="tagcloud">
    
    <a href="https://gitmatrix.gitee.io/tags/CSRF/">CSRF</a>
    
    <a href="https://gitmatrix.gitee.io/tags/Chrome-Extension/">Chrome Extension</a>
    
    <a href="https://gitmatrix.gitee.io/tags/Chrome%E6%8F%92%E4%BB%B6/">Chrome插件</a>
    
    <a href="https://gitmatrix.gitee.io/tags/Google-hacking/">Google hacking</a>
    
    <a href="https://gitmatrix.gitee.io/tags/JavaScript/">JavaScript</a>
    
    <a href="https://gitmatrix.gitee.io/tags/Linux/">Linux</a>
    
    <a href="https://gitmatrix.gitee.io/tags/Mysql/">Mysql</a>
    
    <a href="https://gitmatrix.gitee.io/tags/Payload/">Payload</a>
    
    <a href="https://gitmatrix.gitee.io/tags/XSS/">XSS</a>
    
    <a href="https://gitmatrix.gitee.io/tags/Zabbix/">Zabbix</a>
    
    <a href="https://gitmatrix.gitee.io/tags/js/">js</a>
    
    <a href="https://gitmatrix.gitee.io/tags/Mysql/">Mysql</a>
    
    <a href="https://gitmatrix.gitee.io/tags/sql/">sql</a>
    
    <a href="https://gitmatrix.gitee.io/tags/ssh/">ssh</a>
    
    <a href="https://gitmatrix.gitee.io/tags/test/">test</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E4%B8%AD%E5%8D%8E%E4%BA%BA%E6%B0%91%E5%85%B1%E5%92%8C%E5%9B%BD%E7%BD%91%E7%BB%9C%E5%AE%89%E5%85%A8%E6%B3%95/">中华人民共和国网络安全法</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E5%9F%BA%E6%9C%AC%E4%BF%A1%E6%81%AF%E6%94%B6%E9%9B%86/">基本信息收集</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%8C%87%E7%BA%B9%E8%AF%86%E5%88%AB/">指纹识别</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%94%B6%E9%9B%86%E5%AD%90%E5%9F%9F%E4%BF%A1%E6%81%AF/">收集子域信息</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%94%B6%E9%9B%86%E6%95%8F%E6%84%9F%E7%9B%AE%E5%BD%95%E6%96%87%E4%BB%B6/">收集敏感目录文件</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%94%BB%E5%87%BB/">攻击</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%95%99%E7%A8%8B/">教程</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%95%B4%E7%AB%99%E5%88%86%E6%9E%90/">整站分析</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%96%87%E4%BB%B6/">文件</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%B8%97%E9%80%8F%E6%B5%8B%E8%AF%95%E4%BB%8B%E7%BB%8D/">渗透测试介绍</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%B8%97%E9%80%8F%E6%B5%8B%E8%AF%95%E6%B5%81%E7%A8%8B/">渗透测试流程</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E6%BC%8F%E6%B4%9E/">漏洞</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E7%9C%9F%E5%AE%9EIP%E5%9C%B0%E5%9D%80%E6%9F%A5%E8%AF%A2/">真实IP地址查询</a>
    
    <a href="https://gitmatrix.gitee.io/tags/%E9%9D%B6%E5%9C%BA/">靶场</a>
    
</div>
    </section>

    
<section class="widget">
    <h3 class="widget-title">友情链接</h3>
    <ul class="widget-list">
        
        <li>
            <a target="_blank" href="https://www.bugbank.cn/" title="漏洞银行">漏洞银行</a>
        </li>
        
        <li>
            <a target="_blank" href="https://www.xf1433.com/59.html" title="电脑黑客书籍在线阅读">电脑黑客书籍在线阅读</a>
        </li>
        
        <li>
            <a target="_blank" href="http://yuedu.baidu.com/ebook/14a722970740be1e640e9a3e" title="Android Gradle权威指南">Android Gradle权威指南</a>
        </li>
        
    </ul>
</section>


    <section class="widget">
        <h3 class="widget-title">其它</h3>
        <ul class="widget-list">
            <li><a href="https://gitmatrix.gitee.io/index.xml"></a></li>
        </ul>
    </section>
</div>
            </div>
        </div>
    </div>
</body>

</html>